<template>
	<view v-if="open" class="">
		<view class="bg">
			<view class="content">
				<view class="content-box">
					<view class="head">核销</view>
					<view class="code">
						<image :src="item.qrcode" mode="aspectFill"></image>
						<view class="">请将此二维码展示给服务商</view>
					</view>
				</view>
				<view class="close">
					<image @click="handleClose" src="https://qiyeji.oss-cn-beijing.aliyuncs.com/pet/model-close.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				open:false,
				item:{},
			}
		},
		methods:{
			handleOpen(e){
				this.open = true
				this.item = e
				console.log(e,'asdfasd')
			},
			handleClose(){
				this.open = false
			}
		},
	}
</script>

<style>
</style>
<style scoped lang="scss">
	.bg{
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		z-index: 9;
		background: rgba(0, 0, 0, .5);
		.content{
			width: 590rpx;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%,-50%);
			.content-box{
				background: #fff;
				border-radius: 32rpx;
				overflow: hidden;
				.head{
					width: 100%;
					background: #fff9de;
					border-radius: 32rpx 32rpx 0rpx 0rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 600;
					font-size: 36rpx;
					color: var(--h1Color);
					line-height: 106rpx;
					text-align: center;
				}
				.code{
					width: 100%;
					padding: 65rpx 0 80rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					image{
						width: 320rpx;
						height: 320rpx;
						margin-bottom: 48rpx;
						display: block;
						background: #fff9de;
					}
					view{
						font-family: PingFangSC, PingFang SC;
						font-weight: 400;
						font-size: 28rpx;
						color: var(--h3Color);
						line-height: 40rpx;
					}
				}
			}
			.close{
				width: 100%;
				margin-top: 48rpx;
				display: flex;
				justify-content: center;
				image{
					width: 60rpx;
					height: 60rpx;
				}
			}
		}
	}
</style>